<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>权限设置菜单页</title>
<script src="../Js/jquery.js"></script>
<script src="../Js/layer.js"></script>
<script src="../Js/common_operations.js"></script>
<script src="../Js/publicFormCheck.js"></script>
<link rel="stylesheet" type="text/css" href="../Css/view.css">
<link rel="stylesheet" type="text/css" href="../Css/viewCss.css">
<style type="text/css">
td label {
	display: block;
	width: 200px;
	float: left;
}

#left {
	width: 200px;
}

#center{
	width: 200px;
}

#right {
	width: 400px;
}

div label {
	display: block;
	width: auto;
	float: left;
}
</style>
</head>

<body>
	<form id="roleForm" target="mager" method="post" action="<%=request.getContextPath()%>/roleMenu/getRole.do">

		角色名称：<input type="text" name="rRole" /></br></br>
		<div>
			<label> 角色简介：</label>
			<textarea name="rInfo" cols="50" rows="5"></textarea>
		</div>

		<table class="listtable" border="0">

			<tr>
				<th>顶部菜单</th>
				<th>左侧菜单</th>
				<th>功能按钮</th>
			</tr>
			<tr>
				<td valign="top" id="left">
				    <c:forEach var="s" items="${navigate}">
						<label><input name="navigate[]" type="checkbox" value="${s.id}" />${s.navname}</label>
					</c:forEach>
				</td>
				<td valign="top" id="center">
				    <c:forEach var="s1" items="${menu}">
						<label><input name="menu[]" type="checkbox" value="${s1.id}" />${s1.menuName}</label>
					</c:forEach>
				</td>
				<td valign="top" id="right">
				    <c:forEach var="s2" items="${function}">
						<label><input name="function[]" type="checkbox" value="${s2.id}" />${s2.funname}</label>
					</c:forEach>
			    </td>
			</tr>

			<tr>
				<td colspan="3" align="center" height="50px">
					<input type="submit" value="提交" class="btn btn-success" 
					              onclick="javascript:this.form.action='<%=request.getContextPath()%>/roleMenu/getRole.do';">
				    <input type="reset" value="重置" class="btn btn-success">
				</td>    
			</tr>
		</table>
	</form>

	<iframe id="mager" name="mager" frameborder="0" width="1" height="1" src=""></iframe>
</body>
</html>
